
<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-supply-baseinfo" data-options="border:false;width:100%">
	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		<p>
			<span class="badge">提示</span>
			<font color="red"> 在此,你可以对未审核供应商信息进行审核操作!
		</p>
	</div>
	<!-- 精确查询 section 结束-->
	
	 <div class="tb-list" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px" class="list-btn">
			
				</td>
				<td style="padding-left:2px">
					<input name="status" class="searchbox" type="text"  />
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search" plain="true" >执行查询</a>
				</td>
			</tr>
		</table>
	</div>		
	<table id="dg-detail" class="easyui-datagrid dg-list" title="文档列表"
		data-options="rownumbers:true,
		animate: true,									
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',									
		fitColumns: true,
		checkOnSelect:true,
		pagination : true,
		selectOnCheck:true					
		">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="sup_name" width="100" align="left" halign="center">供应商名称</th>
				<th field="state_id" width="30" align="center" data-options="{
					formatter:function(value,row,index){
						if(value && value==1){
							return '是'
						}
						return '否';						
					}
				}">是否公开</th>
				<th field="sup_address" width="60" align="center">供应商地址</th>
				<th field="legalrepresentative" width="60" align="center">法定代表人</th>
				<th field="authorizedperson" width="60" align="center">联系人</th>
				<th field="contactphone" width="60" align="center">联系电话</th>			
				<th field="filling_time" width="30" align="center">建档时间</th>
				<th field="status" width="30" align="center" data-options="{
					formatter:function(value,row,index){
						if(value){
							switch(value){
								case '0':
								return '<span><font color=blue>已提交</font></span>';
								break;
								case '1':
								return '<span><font color=green>审核通过</font></span>';
								break;
								case '-1':
								return '<span><font color=red>未通过</font></span>';
								break;
							}
						}
						return null;						
					}
				}">审核状态</th>							
			</tr>
		</thead>
		
	</table>
	
</div>

<script>
requirejs(['listPageModule','supplyListAuditPage','domReady!'],function(listPageModule,supplyListAuditPage,doc){
	listPageModule.init({
		doc:doc,								//当前页面dom对象,由 domReady! 插件自动返回
		rootId:'panel-supply-baseinfo',			//当前页面根节点dom对象id值,与html中根节点值必须对应，否则页面无法正确定位
		subSystemCode:'supply',					//子系统名称
		moduleCode:'supplyBaseinfo',				//业务模块名称
		editWindow:'supply-baseinfo-win',		//弹出窗口名称，必须与html中定义对象一致
		initQueryParams:{status:'0'},
		
//		initElement:supplyListAuditPage.initList,		//初始化列表页面的扩展函数，用于增加业务所必须的特殊字段或布局处理
		rowDblClick:supplyListAuditPage.rowDblClick});//列表数据双击事件监听函数		
});	
</script>